<div>
    <div *ngIf="user == '';else showBuhalf">
        <div>
          <label for="new-hero">登陆人: </label>
          <input id="new-hero" #userName placeholder="请输入用户名"/>
        </div>
        <button nz-button nzType="primary" (click)="login(userName.value); userName.value=''; ">登陆</button>
      </div>
      <ng-template #showBuhalf>
        <app-behalf-children [type]="type" [user]="user"></app-behalf-children>
      </ng-template>
</div>
